add db struct