A pivot friendly model/view/controller in php/mongo.