Added security group ID as column to rules table