Add raw option to exportRecords