Database failure checks implemented