random matches query setup - now ruuning to save as data.txt