del db struct, currently its wrong