Refactor DatabaseError exception handling