More helpful error when database is not initialized + init link

Username/password errors are reported by dbSettings.php, so failure here usually means the database wasn't intialized yet.
Probably what was intended with "generate SQL-queries in the PHP-code for checking rules per interface." Does not compile yet.