Updating terms table.