anchor.diff:      end,
       From ! {reply, RespJson},
       Priv;
  -
  -%  system views
   process_cmd({[<<"system_views">>], ReqBody}, Sess, _UserId, From, Priv, SessPid) ->
       [{<<"system_views">>,BodyJson}] = ReqBody,
       ConnId = proplists:get_value(<<"conn_id">>, BodyJson, <<>>), %% This should be change to params...
  
positive.code:     end,
      From ! {reply, RespJson},
      Priv;
  
  % open view by id
  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...
  
negative.code:             end,
              Priv#priv{connections = [Connection|Connections]}
      end;
  process_cmd({[<<"change_conn_pswd">>], ReqBody}, _Sess, _UserId, From, #priv{connections = Connections} = Priv, _SessPid) ->
      [{<<"change_pswd">>, BodyJson}] = ReqBody,
      Connection = ?D2T(proplists:get_value(<<"connection">>, BodyJson, <<>>)),
  