An exercise in node.js and MongoDB