Added constrains to media file and in the media product bridge

This way adding the same file reuses the row in Media