Update index.js

Replace mongodb.Db.connect with mongodb.MongoClient.connect
with additional server options and db options, which open for developer preferences.