implementation of mongoDB manager