Refactor out storage updates
Refactor out storage updates

Instead of using a hacky flag, simply move the storage update code to a
separate function and call it when needed.

Signed-off-by: Lukas Fleischer <af90e31281d8305af43dc616c5aaca3c7165f8a7@cryptocrack.de>

lfos/calcurse,lfos/calcurse,lfos/calcurse