debugged database manager