ticket:1. DBManager completed; few bugfixes