title: Cleaning up Database entries
body: <p>On an App v1.0 I gave the user the possibility to add data on a database, only an attribute at a time.
  As examaple lets say that the user can add a person name and his/her surname. Later on, let´s say he/she adds the age. The database would look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/zdqyo.png" alt="enter image description here"></p>
  
  <p>(where the attibute ´Name´ is unique)</p>
  
  <p>I´m going to update the code so that before saving another attribute (say ´alias´), it will chech whether the name has already been used. If it is, it will add the alias in the same entry and if not, it will create a new one.</p>
  
  <p>What I´d also like to do is to clean up the database. In this example it would merge entries #1 and #2, to get something like:</p>
  
  <p><img src="https://i.stack.imgur.com/uachS.png" alt="enter image description here"></p>
  
  <p>(former entry #2 would be deleted).</p>
  
  <p>I seem to remember that there was an automatic way to do that, but I´m not sure if I´ve immagined it or it was somewhere else such as MS Access because I cannot find it again.</p>
  
  <p>So, is there a way to do that automatically or should I explore a programatically approach?</p>