update mongo script