Fix submitData method that did not pass queries through

I think this is a bug that was lost in the shuffle. Looks like we were
referencing queries via $this instead of passing them through?