Checkpoint before switching mongodb API to being an iterator
Switched MongoDB over to generator style.