load photos from nosql db