code: function getDbName(uri) {
    var parsedMongooseUri = mongoUriParser.parse(uri);
    var dbName = parsedMongooseUri.database;
    return dbName;
  }
docs: Get the database name from the given mongodb uri.
  @param {string} uri the mongodb uri
  @returns {string} the name of the mongodb database