Retry request on fail

If a POST request to the DB fails, it is retried