Cook County, Ill., home to Chicago, has left a database exposed since at least September that contained sensitive criminal and family-court records.