sets up migrations and models and associations