added isNewRecord() delete() and save() to purchase