Fix upgrade check when db server offline