added util function to check if photo exists by hash. added check in addPhoto, currently prevents any dupes added at all.