finished db structure