Continual Connection Updates

Updated the connection portion of mongo by moving free functions to the
connection struct.