In the fall of 1999, the drug giant SmithKline Beecham secretly began a study to find out if its diabetes medicine, Avandia, was safer for the heart than a competing pill, Actos, made by Takeda.