added sql db structure