update some methods in MongoManager and add method to repository