Start on the class that writes.
It will write either to Mongo or to flat files that get put into Mongo.