moved photo dao to new file