What are some good ways to manage a simple database for each note?

Given that:

If I want to have a database for each file so that:

  • Plugins can read and write them whenever the note changes its location, name, etc. Bonus if Dataview can read them as if they are just inline fields
  • I can manage them effectively

What would you suggest? For now I can think of 2 options:

  • Using a one-liner JSON as a value of a field for dataview
  • Having a two-way sync between basic Obsidian database (at MetadataCache I guess) and a real database

What do you think?