Fix #22. Check isNewRecord by pk value