refs #6417 we have to generate the SQL in the update itself otherwise the update would fail at some point in the future if the tables signature changes