title: Update date range in Postgres table
body: <p>I have table with dates:</p>
  
  <pre><code>select id,date date_ranges where range_id = 1;
  1 2016-04-12
  2 2016-04-13
  3 2016-04-14
  </code></pre>
  
  <p>also i have an array:</p>
  
  <p>example:    </p>
  
  <pre><code>array('2016-04-11','2016-04-12','2016-04-13','2016-04-14','2016-04-15')
  </code></pre>
  
  <p>or</p>
  
  <pre><code>array('2016-04-13','2016-04-14','2016-04-15')
  </code></pre>
  
  <p>How can i insert new values from array to my table without changing existing table values?
  And if i have second array, how can i delete value 2016-04-12 from table?</p>
  
  <p>Help plz, I need one query)</p>