[entropy.db] delete inverse actions from treeupdates actions

For instance, if we have moved a to b and then we decided to move
b back to a, Entropy will keep flip flopping from one to another.
This commit makes possible to filter such actions so that only
the last one is considered in the end.