ncm mysql: fix processing of tableOptions + misc. cleanups

I would like to add unit tests... wait before merging.

Tested at GRIF. Note that the `ALTER` command used to implement `tableOptions` can take some time...
The escape/unescape is there for underscore and spaces. But this is the normal SQL syntax: some parameters/options are made of several words and they should not be quoted...