Fixed opening multiple mongo connections problem.
Might need to convert the connection into an atom