Have one funcion to process all insert/update/clone/delete