Add support for ssl

why lists flatten here instead of: `[{database, Db}, {port, Port}, ... | Opts]`