Be able to export the results of a query to a CSV file