Use error message from database class instead of odbc_error