I am new to SQL programming, and I am trying to create a function that tries to insert a record, but if the email already exists in the table, then it will update that record.