move connect mongo to prepare directory