Properly store the dialogs which belong to shared profiles when saving them in the DB
Properly re-link the shared profiles to the dialog at startup