fix db structs(must set default value)