Improve export code, use parallelLimit to not stress the database