merge getlist and execQuery that uses printCallback