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...
Pass `log => $self` as a parameter so that we log the file we wrote.

Unless there are good reasons not to log here?