Badge updater.

Updater for badges (otherwise there is a foreign key contraint error when migrations are executed on a running platform with existing badges).