Corrected tableExporter for export of all tables.