Added ability to specify the config variable $db_port, see
[support-requests:#365].