adds models and relations