added the chunk size when exporting to limit the memory usage when
pulling big amount of data from mysql