Morten,
You should be able to define the following configuration variables (those highlighted) MS_GEODBCONNECT, _USTN_DATABASENAME and MS_GEOINITCMD to automatically perform the database connection and prevent the display of the "Connect to Database…