Add error management, the MongoConnector class and fix updates that updated only 1 document
Add error management, the MongoConnector class and fix updates that updated only 1 document (merge)