Introduce ExportTableToCSV.
Improve CSV export/import methods