anchor.diff:              From ! {reply, jsx:encode([{<<"error">>, <<"Connection not found">>}])},
               Priv
       end;
  -
   process_cmd({[<<"query">>], ReqBody}, Sess, _UserId, From, #priv{connections = Connections} = Priv, SessPid) ->
       [{<<"query">>,BodyJson}] = ReqBody,
       Query = proplists:get_value(<<"qstr">>, BodyJson, <<>>),
  
positive.code:             From ! {reply, error_invalid_conn(Connection, Connections)}
      end,
      Priv;
  
  process_cmd({[<<"browse_data">>], ReqBody}, Sess, _UserId, From, #priv{connections = Connections} = Priv, SessPid) ->
      [{<<"browse_data">>,BodyJson}] = ReqBody,
      Statement = binary_to_term(base64:decode(proplists:get_value(<<"statement">>, BodyJson, <<>>))),
  
negative.code:     end,
      From ! {reply, RespJson},
      Priv;
  process_cmd({[<<"open_view">>], ReqBody}, Sess, _UserId, From, #priv{connections = Connections} = Priv, SessPid) ->
      [{<<"open_view">>, BodyJson}] = ReqBody,
      ConnId = proplists:get_value(<<"conn_id">>, BodyJson, <<>>), %% This should be change to params...
  