Thanks for the feedback on reading tags from sidecar files. I'll probably go with writing a bit of code to read the .xmp tags and apply them to the digikam database (with a backup before, of course).