Persistance layer done (enough for now, at least).