update to speed up db INSERTS