You're looping through the Queries, not the Connections.