changed column names of photos so active record could work