Drupal stores site configuration data in a consistent manner, everything from the list of enabled modules, through to content types, taxonomy vocabularies, fields, and views.
Making configuration changes on a live site is not recommended. The system is designed to make it easy to take the live configuration, test changes locally, export them to files, and deploy to production. Your site's configuration can be stored as part of your codebase and integrated with version control.