adding changes update to include port, protocol, and host settings
diff --git a/actions/changes.js b/actions/changes.js
index 665073a..fe35d67 100644
--- a/actions/changes.js
+++ b/actions/changes.js
@@ -17,6 +17,8 @@
     var pass = msg.password;
     var includeDoc = msg.includeDoc || false;
     var host = msg.host;
+    var protocol = msg.protocol || 'https';
+    var port = msg.port;
     var maxTriggers = msg.maxTriggers || 1000;
 
     if (lifecycleEvent === 'CREATE') {
@@ -25,6 +27,9 @@
         var auth = apiKey.split(':');
         var input = {};
         input["accounturl"] = "https://" + host;
+        input["host"] = host;
+        input["port"] = port;
+        input["protocol"] = protocol;
         input["dbname"] = dbname;
         input["user"] = user;
         input["pass"] = pass;
diff --git a/app.js b/app.js
index 5b5adc4..0f6d776 100644
--- a/app.js
+++ b/app.js
@@ -83,8 +83,8 @@
   // no need for a promise here, but leaving code inplace until we prove out the question of cookie usage
   var promise = new Promise(function(resolve, reject) {
 
-    nanop = require('nano')(dbProtocol + '://' + dbUsername + ':' + dbPassword + '@' + dbHost);
     logger.info('url is ' +  dbProtocol + '://' + dbUsername + ':' + dbPassword + '@' + dbHost);
+    nanop = require('nano')(dbProtocol + '://' + dbUsername + ':' + dbPassword + '@' + dbHost);
     resolve(createDatabase (nanop));
     
   });