changed get functions to take primary key