var MongoClient = require('mongodb').MongoClient;
// Open the connection to mongoDB to database named 'hello'
MongoClient.connect('mongodb://127.0.0.1:27017/hello', function(err, db) {
if(err) throw err;
// Find one document in our collection 'world'
db.collection('world').findOne({}, function(err, doc) {
if(err) throw err;
// Print the result if found or null if not found.
console.dir(doc);
// It's important to close the DB after you have finished
db.close();
});
});