refining upload route.
Added 1 time for loop to add images to database