escape all execute statements

* use ? instead of string substitution for every execute statement
* add jid to debugging output
* kill some trailing whitespace
* kill some commented out code