use sorm_insert and sorm_replace instead of sorm_save