added db structure