Update export_csv function.
add create_csv