Adding upsert method

Added an upsert method for each current access class. Updated the relevant methods in the class to call upsert instead of update where neccessary.