queryTableCallback method added