history: save history on update

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>