adds log testing on db and storage clear on refresh and home state