Extract data from Mysql in parallel