query text file using sql