Using temporary table in db
saveByReplace seem to work
Now with triggers