You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: getTable.m
    path of file: ./repos/d4m/matlab_src/@DBserver
    
    the code of the file until where you have to start completion: %
function schema = getTable(DB, tableName)

urlport = DB.host;

cmd = ['wget -q -O - "' urlport 'new_session" --http-user=' D
    
function should return from here
    else
        error('Unable to execute query\nSciDB error code : %s', y{2});
    end
else
    % table exists. read schema
    cmd = ['wget -q -O - "' urlport 'read_lines?id=' sessionID '&n=0" --http-user=' DB.user ' --http-password=' DB.pass];

    [stat, schema] = system(cmd);
    if stat>0
        error('Unable to retrieve query resutls');
    end