some db_manager tests
more tests
tests and bugfixes