Added update and delete for mongodb.