Save previous values of primary keys during factory() instantiation