passing csv filename to export_to_csv function