title: Two different actions in one sql query
body: <p>I have two <code>sql</code> queries. 
  First one is insert:</p>
  
  <pre><code>insert into categories  (id, title,kind,parent_id,sort,url)  values (DEFAULT, 'test21','РАБОЧИЕ КАТЕГОРИИ','721','0', 'test21');
  </code></pre>
  
  <p>Second one is update:</p>
  
  <pre><code>with
  t1 as (select id as _id, parent_id, url as url1, title as title1 from categories where parent_id !=0),
  t2 as (select id, url as url2, title as title2 from categories where parent_id =0),
  t3 as(select * from t2 INNER JOIN t1 ON (t2.id= t1.parent_id)),
  t4 as(select _id, '/'||url2||'/'|| url1 as new_full_url, '/'||title2||'/'|| title1 as new_full_bc from t3),
  t5 as (select _id, new_full_url, new_full_bc from t4 union select id, url2, title2 from t2)
  update categories set full_bc=new_full_bc, full_url=new_full_url from t5 where categories.id=t5._id;
  </code></pre>
  
  <p>They work fine as two separate queries. But for some reason I need to connect these queries into one query, these two queries were like one query. Is that possible?</p>
  
  <p>I mean that these queries are executed sequentially. First one, then the second. I need these queries to execute like one query, or, as I said, these two queries were like one query.</p>