Another cause for excessive cavities can be from medications.
My two nieces are a classic example. Same home and habits, yet the one had lots of cavities starting early in her life, due to meds she'd had while ill. The other, nothing til she was late in her teens!