Database connection errors should return HTTP status 500.