insert: retrieve inserted primary value if needed