revised database error