rename QueryThread to QueryPool