Make $dbConnectionString available to the template so when the dbsettings.inc.php cannot be written directly, we can show it.

Fixes #1825