carousel image from database

I am trying to fill the carousel image links from a database collection ... i can not link the carousel to the array of the db service of the query .. can someone help me in this?
I can link to the carousel item only.. how can i link the 3 records from the collection to the 3 carousel items?
1 person has
this question