Added a return of a temp_id upon success insertion of event