How is Gramps handling the path to the database

I’m looking for some clarification how Gramps is handling the path to the database.

i.e: Content of Preferences → Database location → Database Path = /mnt/nas_appsdata/GrampsData/62432b35v21

see directory screen shots

The most recent used database is in directory 63b9c406 (see time stamp).
However, in addition to that there are also datasets in directory 62432b35v21 itself and in sub-directory 63b98e85, all with older time stamps.
It seems to me that Gramps made changes on the data path by itself. These changes are not made by my edits of the preferences.

Is there some logic behind it that Gramps creating a new dataset in a different location on its own?
If so, what are the conditions for these changes?
Perhaps some knows more about inner workings of Gramps with regards to this topic.
Thank you