Can query before being connected
Added example for querying before being connected