Adding error pages when db fails