database chaged and pPhotoAdapter created