Refactor mongo out to stuff. #3