change query variable to be persistentConnections