db unittests
more tests