Since this is no longer strictly an insert, I'd suggest renaming the function -- e.g. replaceObject. (We're also changing conventions to avoid putting the class name into the CRUD function names, hence the change from Referral to Object.)