Mongo new authentication function
new versions of mongodb has a different authentication mechanisms. So now we are having this warning:
Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials.
we could prevent this in advance.