The array saves all the file locations of the pictures based on the listindex of the description, so you don't have to go back to the database for each one. And obviously close your connections. I am just rattling this off here.