Exports Cassandra's query result to CSV