Removed global db access; handle clock div/0
Absorbed dps clock; removed global db access
Modularized; removed dps_clock
Version rev
Merge pull request #188 from jerryhebert/master

More refactoring; modularized db a bit