added query for restart PK