cleanup db on restart
catch bad json