Display an error when unable to connect to database.