make database error codes available