adding primary key fetching to all models