Retry up to 3 times to complete HTTP request on any PSQLException (todo - only do this for unique constraint violations)
Only heartbeat every 5 seconds, not every 1
Redef heartbeat time in agent service test to avoid it failing due to the new longer heartbeat time