Fix backup/restore

Implement natural key and foreign key handling for Profile and AccountSettings

This fixes an issue on restore with unique constraints violation.

Merge request reports

Loading