convert mongo to sync driver