Update of MongoDBConnector, new functions added