created relation between user and the photos they uploaded