I am having an issue where while looping through a data set and looking in the db to see if it already exists, it works the first run but the second item causes an error.