MongoDB sample code based on native driver for Node.js