1. changed db_qd_log to use the passed-in level rather than gluing things to "Debug" for convenience. I then changed all the "Notice" calls to "Debug". Then my one "Error" call I added worked! :) If a query file has a syntax error in it now, an error is logged to the server log but bootstrapping continues.
2. Lots and lots or etp oracle fixes and some PG version clean-ups
3. Some file-storage files were unconventionally named.
1. Added a new Tcl procedure to the content repository's library, named cr_write_content, which properly writes content to the connection regardless of RDBMS and storage type. This simplified a bunch of stuff (which explains the removed files).
2. Fixed a lot of general comments issues regarding HTML vs. Plain/Text, attachments, etc.