Escape like query, make isConnected public