edit and simplify the 'run mongodb' scripts