run mysql queries in parallel

see discussion in issue #122 and #33