Adding quering functionality to original myChat