title: How to Insert value into main field in Wix Corvid
body: <p>I have event table in Corvid Database, it has Event_Id column for every new event which is not asked from the user in the form.</p>
  
  <p>I used the following code to get the number of rows and generate id from that which works good now:</p>
  
  <pre><code>    let count = 0;
    $w("#collection").onReady( () =&gt; {
       count = $w("#collection").getTotalCount(); // 23
         count++; 
    } );
  
  $w('#btnSub').onClick( ()=&gt;{
  const newRequest = {
      eventid:('event_'+count),
      title: $w('#title').value
  }
  wixData.insert('event_instance', newRequest);
  </code></pre>
  
  <p>but this can lead to duplication of event id as I delete one of the row from collection</p>
  
  <p>Can you please find a solution for this?</p>
  
  <p>Thanks</p>