A self-gravitating accretion disk in Sgr A* a few million years ago: Is Sgr A* a failed quasar?