based on http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ tutorial