adding db and persistence stuff.