print a warning when the database connection fails