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?
Merge pull request #5 from willwashburn/bugfix-socketSubmit

Fix submitData method that did not pass queries through