How to export guest data to a CSV file