Added error response when db test fails