added asserts for DB module
corrected tests
added additional asserts for DB module