Profile database migration fix