fixed table2csv to post so it can handle large tables