updated mongoDB operation scripts