Prettify the sql, and fix a major bug in the UPDATE
dzil, copyright
Changes