Basic logging / recovery working.

Likes seem to not work yet, i suspect this has to do with the count not being preserved