ncm-mysql: fix processing of tableOptions
- Also fix wrong return code in mysqlExecCmd() when arguments are invalid

Fixes #300