created model structure and db structure