Added error message for database connection failure