--insert into table history before delete (finish)