Committing export to CSV (not working)