rename and add db connection error re-try