Fixed up args references in table query endpoint