fix delete db