Slightly better error when connection to the database fails