update and delete methods for the entities