Errordump fixes

Closes #844

Had to introduce the key value store since the last known error dump might not be the last one saved on the list, iff the newest error dump has been deleted by the user.
The schema migration for this model is missing