Changes to add new fields to terms table