try to fix how records are created - use update instead of insert