modified dbmanager