Add support for customized couchdb connection string
Previous version only supports localhost couchdb,
we add a new function to support external databases as well
Previous version only supports localhost couchdb,
we add a new function to support external databases as well