initial mongo commit

Previous merge request wasn't my master. Would have caused issues later. This is the correct pull req.