saves data to a spreadsheet