Close DataBase Connection

  

I have some problems to close the External DataBase Connection, It isn't close qhen the actions finish, that another way to close the connection like manually ? This picture is about the logict that is responsible to get the ID of the connection to get some data, and have to do this again for all the IDs that it recives, but isn't closing the connection and the datas is duplicating...

And this another picture is about the logic that is responsible to connect and get the datas in the External DataBase... 

Hello Leonard.

Are you still facing this problem?

What do you mean by "duplicating"?
What are the steps you do that "duplicates" whatever is being duplicated?

Cheers.

Is duplicating cause the conection don't close automatically, and in the conection I have a lot of datas that I take, during this step the logic starts again and again, ever when I data to take It opens another conection and take more and more, and don't stop, I need some way to stop this conections to the databases and not duplicate It again...