insert: return primary value only if needed