update and delete data