refactored MongoProvider update method