database adding debug