# PresetMagician Database

Starting with PresetMagician 0.5.5, it uses an [SQLite ](https://www.sqlite.org/index.html)database to keep track of plugins, presets and other configuration information.

This allows you to edit [preset metadata](/help/manual/terminology.md#preset-metadata) and allows PresetMagician to keep track of already exported presets.&#x20;

## Database Compression

The database stores preset data compressed by default at the cost of a bit performance.  Saves up to 70% space in the database, but increases preset data retrieval time by a factor of about 3, depending on your disk speed. However, usually it takes way longer to actually generate the NKS file than retrieving the preset data, but the whole process should be very quick overall.

You might feel an effect if you process 100.000s of presets in the database or have an extremely slow disk drive. The time PresetMagician requires to generate Audio Previews is not affected.

If you prefer maximum performance, you can disable [preset compression](/help/manual/reference/global-settings/database-settings.md).

{% hint style="info" %}
You can have compressed and non-compressed preset data in the same database, so you don't need to run the [Compress/Decompress Presets](broken://pages/-LXlu2rN-CwtuarSb7zN) commands if you change the [preset compression setting](/help/manual/reference/global-settings/database-settings.md#compress-preset-data).
{% endhint %}

## Creating Backups

You should create regular backups of the database file. To do this, open the [Database Settings](/help/manual/reference/global-settings/database-settings.md) and click the "Open Database Location" button. Your Windows Explorer should now open, revealing the location of the PresetMagician configuration folder.

{% hint style="danger" %}
It is important to close PresetMagician prior copying the file to ensure all data has been written to that file.
{% endhint %}

Close PresetMagician and copy the file `"PresetMagician.sqlite3"` to your backup location. You should also backup the files `"configuration.json"` (which contains the global configuration settings like VST directories) as well as `"license.lic"` (which contains your license information).

{% hint style="info" %}
There's no need to make a backup of the other files within that directory
{% endhint %}

## Restoring Backups

To restore a backup, simply close PresetMagician and restore the files you previously have made a backup of.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://presetmagician.gitbook.io/help/manual/concepts/presetmagician-database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
