Adding function to export search results to CSV file to allow generating of basic reports and audits of services.