[identity_map] define merge_or_insert dynamically too. no more need for primary key.