Regenerate after mongodb restarts