BASF, the world's largest chemical maker, says it has found a way to prevent cavity-causing bacteria from attacking teeth, a development that could be seen in toothpaste, mouthwash and even candy as early as next year. Using a microorganism related to those used in yogurt cultures, the Germany-based company said it has engineered a process that clusters harmful bacteria in the mouth before they can bind with sugar and form plaque.