new undo/redo schema
return primary keys