Large rewrite - remove legacy features, normalize db
Fix duplicates in dossier