[server] Improve MySQL db config.

* Allow password with special characters;
* Accept port configuration;
* Allow using ssl connection.

Example:
[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = P@$$word
db_name = seafile-db
use_ssl = True