fixing db clear