refine database error page