Force connection when query is made