connected runQuery on client to server api