added db stucture