use a patched version of unicodecsv
use iterators and prefetching to export query: much faster