corrected missing uk on analysis table
removed some trailing spaces
simple formatting cleanups
added cascading deletes, quite a few more attributes, renamed db to
engine, lots of small stuff.
misc cleanups, some related to change to cascading deletes, fixed old
reporting code, etc.
incremented version to 0.49
added metadata interface
minor tweaks
updated for release 0.49
updates for v0.49
corrected columns that were inconsistent with metadata.py