Where does firefox store the data whether an extension is enabled or disabled?

I am trying to automate the process of creating a Firefox profile. I want to create a profile that is in a exact desired state that I want for various tasks, this desired state can something such as

  1. A relatively clean profile
  2. A specific set of settings in the \prefs.js file, such as disabling the “Make Firefox your go-to browser” first time launch dialog
  3. A specific set of css settings in the chrom directory, just to visually differentiate the profile from others
  4. A specific set of extensions
  5. All extensions are always enabled

and so on, I have figured out most things but for the life of me I cant figure out item .5, when I start the profile, all extensions are always disabled and I have to manually enable them
I tried figuring out what file this information is stored on but have had no luck. Does anyone know?

Thank you.