returning http status code 503 in case connecting to the database failed