argc argv save query into query.txt