Our attempt at the mongodb cookbook.