Update exportRecords.R