Added options for secure mysql connections

The PostGreSQL part is in progress...