trying to connect error page to database errors