delete function
database update