Is it not working if you just copy them back to their original place?
I don’t know with your version of SFOS but with the 4.4:
If your username is
defaultuser, the places are
I’d do it when the user (nemo/defaultuser?) is not logged.
Either from recovery mode or as root through terminal while being logged as a secondary user that you can create in Settings > Uers.
This needs e.g.
su (instead of
devel-su which isn’t enabled for secondary users).
Beware that these files rights have perhaps changed while being copied to the PC.
The owner must be
defaultuser and the group has to be
E.g, change the rights with:
chown defaultuser:privileged /yout_path/your.file
Before to copy the files back, delete the contents of the directories if actuel databases contain no important data:
rm -f `/home/defaultuser/.local/share/system/privileged/Contacts/qtcontacts-sqlite/*
rm -f /home/defaultuser/.local/share/commhistory/*
Just ask if I forgot something.