Re-establish DB connection during the mass recalculation (for Postgresql replica mostly) - trying to fix 'canceling statement due to conflict with recovery' error.