Fix: Db primary key

If primary key is not ID?
In ORM class it is possible to change name of primary key.