Added 'upsert' function
This is going to make use of a fairly new insert statement called "INSERT ON CONFLICT", which allows an update to be performed on a record if the INSERT fails.
This is going to make use of a fairly new insert statement called "INSERT ON CONFLICT", which allows an update to be performed on a record if the INSERT fails.