Adding notion of retries to db in attempt to thwart app failures
investigate: why didn't the old code catch the error thrown on L14?
Only update counts if returned record values support the change