Display error message on startup if connecting to the database fails.