[DBManager] bug fix, make it work with config;