Add PK functionality for table.