adding photo URLS to database and displaying photos