fix  destroy  db error