added some features for working with mongoDB