Exporting records and transactions using .CSV files