updating query and mongo.js