commit after updating and deleting