Fixes active record connection between all models. Creates seed file