Unique index on state

copy paste error where table name wasn't updated.

please forgive cascading PRs, too many conflicts otherwise. cf03835 is the focus here.