Added controllers and migrations, setup relations