Added  support to update method in MongoDB backend.