db structure defined