run mysql queries in parallel

see discussion in issue #112 and #33