Removing old reference code
Added id column to rules table