Changed order of output files and bug fixes
Changed order of output files and bug fixes

Also changed the scope of the global DB variable that’s used when files
are generated without prepared statements. Minor bugs were found and
fixed via testing the generated files.

Isted/StreetCRUD