Tidy SQL statements before running them & skip empty lines.
Reorder tables in JobDB so that they can be created from scratch.