2021-08-28, 13:03
Exporting the song playback history from Kodi creates an xml file with song playcount, lastplayed AND user rating data - all the transient song data that does not come from the music file itself (well user rating is read from tag, but could have been modified via GUI). You can then import this xml file onto a a newly populated music library and it will apply the playcount, lastplayed AND user ratings. It matches what is in the xml to the library on a number of criteria and so can accommodate changed file names or folders, and will work for music with and without Musicbrainz ids, although mbid make it easy.
It sounds like you were going to do some direct db manipulation with SQL, you don't need to
It sounds like you were going to do some direct db manipulation with SQL, you don't need to