changes db structure from has_many through to just has_many and belongs to