Some method renaming and commenting.
A couple more style fixes.
Fixing up the db classes some, preparing for further db abstraction.