First approach to implement the export query as CSV.