Implemented the first version of the export (currently exporting only columns visible in the table).