Use pk instead of id

Looks like this breaks user models which rely on specific primary keys.

I think using PK should work in all cases but I could have gotten the wrong end of the stick, but it works for me.