added db wiping