dbmanager and unit tests