Remove permissions from the database when a group is removed.