Made MongoManager more generic