Playback Statistics store data in database, but when I relocate file location and edit the metadata, it will not able point back to the file.

I want to store "play count" 'last playback time" in metadata.

Is it possible to make it save to metadata, or any alternative??