move mongo start to main method