extract schema manager and dbmanager