now debug the database adding process