Xperia Z5C can't receive SMS
Flashing it with the same bootimg and system without importing the mmssms.db fixed it. To be sure, I imported it again and it did the same as before.

It therefore seems that the replacing the DB is a bad idea, there must be another way.