refactored the insert and update code out of persist_handle.
created a private update_handle method.
created a private insert_handle method.
created a private created_by method.