Replace hard-coded ":id" with data from model

Instead of hard-coding ":id" as the primary key, use the name stored for
the primary key from the model.

Applies to mixonic/ranked-model#38