Added primary key, disabled state table truncation