Added update() method to MongoDB backend.