updating and deleting data