refactor MongoController to MongoDbConnection