saving old queries as text file just in case