add badges to core data