db deletion fix