Speed up data export to ZIP through caching of DB queries.
Further work on javscript progress bar (not working yet).