Added mainphoto to photo_id column in product

To avoid join queries in datasets and datagrids. We only need to fetch
ID of mainphoto in most cases.