Chapter 13, "Persistence".  Improved error logging when MongoDB is not running. Factored DB connection/initialization code into new module.