Moved mongoose stuff from streamMaker to loader