You will need to change the code in order to create an UPSERT that either performs an INSERT or UPDATE depending on the criteria you set.
_________________________
There are two types of vessels, submarines and targets.