How can I export individual records to an excel sheet?