Catch missing arguments for Query()

Also improved error message on Exec() for consistency.
Merge pull request #160 from capoferro/patch-1

Catch missing arguments for Query()