This should be handled by the base class responsible for encapsulating mongo (the one defined in `xmodule`).  At this level, we should abstract from the implementation as much as possible.