finish CRUD ops for badges and saving properly the thumbnails/avatar