When updating, delete all records first