Smartphone app may help you avoid a visit to dentist