Retrieving primary key wasn't working after including collection name - fixed