in reply to Altering SQL code from Update to Insert
If I were you I wouldn't try to change the SQL. I would first setup the tables with default values. Then go through the update statements and grab the ids. That should be relatively easy to parse rather than trying to change the entire command. After you have a list of ids, then create entries in the tables with those ids and nothing but the default values. Then run the update statements as they exist.
That seems much easier to me and would accomplish the same goal.