Fixed photoDao because I forgot about it..