started to add tests for the db module