Hack to make primary key work on views. Brittle. To fix
v0.1.1