Support custom primary keys in Model.find