add db struct and changelo