from http://cwbuecheler.com/web/tutorials/2014/restful-web-app-node-express-mongodb/