update friendship table when add/delete d2d entity"