Fix a few quoting problems related to mysql invocation.