Finished refactoring - includes DbAdapters.
Merged two different versions of my date-dialog branch from work/home
pcs.