(re)fix initial db sync for HA