another db clear function