added a default where clause based on primary key to the update() method