utility to export data in TSV format