Hi @cucu!
You’re on the right track! Everything is Local and contained within the app. So when you get a site going that kicks on the database engine, and when you close your site/Local down everything is saved and stopped.
Another user had some similar questions over here and so this thread might help provide some clarity as well: Location of database files and software - #7 by silverblatt