modify primary key query