MongoConnection refactor