syntax fixes to allow copy/paste of sql commands