stringify badges to save them in the db