mongodb connection string auth db code example
Example 1: connection string mongodb with user
MongoClient.connect('mongodb://admin:password@localhost:27017/db', function (err, db) {
Example 2: mongodb connection string
mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]