Post process foreign keys when uncertain at insert time