making the script quiet
a lot of cleanup
writing some local accounting in, sqlite werd.
accounting pieces
writing ctl utility