Adding Primary Key Functionality