If you clear all records and then insert them you may get an incomplete list back if something queries the DB during this time. May be better to update records and delete extra records that were not in update at the end. Assuming you need this DB stuff in the demo.