mongo update for nodejs and minor changes