I have a method that connects to the mongo DB, but I can\'t figure out if this connection ends after a call was made or not.
This is the method:
import