Added overrideable process_insert and process_update