Database files not deleting bug fixed

Files were not deleting after table copy undo/redo actions.