Adjusted the database to allow diagnose deletion