init db structure