Added user reference to photos table and updated models.