created models and relations
Merge branch 'database'