Added many-to-many relationship between products and media

return Product