Define delete_rows, update data