created models and some migration