add custom primary key check to update and destroy
0.9.8