Insert new transaction in the correct order
Clean up the history updated event