modified mongodb scripts