DB test fixes

--HG--
extra : source : 360c4a5814b8078ec95d4418bef2e3d7d1c3afda
Most tests now passing.  POD coverage tests not yet passing due to framework issues

--HG--
extra : source : 413f22f34ef38b770d1eab3a759bbc0e3506bbdc
Merge pull request #247 from einhverfr/master

test fixes