Made connection start connected based on socket.readyState
Added queryFetch