Added upload id relation to flavors table - for media library. Updated model.