Goes through a SQL-database row by row and uploaded images to amazon S3