Major overhaul to fix QueryBuilder race condition issues when working with connection pools.