Exporting data table and queries results as CSV fixed.