def __init__(self, name, host='127.0.0.1', port=27017):
        self.name = name
        self.host = host
        self.port = port
def execute_as(self, user):
        self.check_prereq(self.LOGGED_IN)
        self._exit_modes_beyond(self.LOGGED_IN)
        user.commandLine(self)
        user.login()
        self.modeList.append(user)
        return user