refactoring: SSL support for MySQL