moving to sqlite instead of file persistence