Reworked error signatures in database class