wait mongo sync
split separate thread