Auto-update owner's picture using a code

I believe the orange color code below came from the source of the profile pictures which is in my MembersPage database, and this orange color code will be added to the blue color code below. This blue color code is connected to my Messages database. Am I correct?

If the orange color code below is connected in my MembersPage (the source of my profile picture), why is it there’s a need for “[i]”? I know that it is the number of of results that should be connected to the “Messages” database.

I’m confused…

profilePic.push(result.items[i].profilePicture)