finished writing the mongo function shells, not finished but good enough
to move to template