Tutorial taken from http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/