Write data to CSV in addition to JSON