Fixes: #57

Allow primary key field not named "id"
Thanks to @nicorac