Thumbnails and links are iterating for first page and saving to the database. Need to store vars in memory then make one save operation in order to get seperate records. Also, look at upserting. Fuck it's almost 3AM