fixed null imageUrls and null db queries