fix data files
Add a --query-file option!  This is some really weird code