public void updateButterfly(TrackingEntry entry)
 {
     int tagNumber = entry.tagNumber;
     if (tagNumber == -1)
         return;
     else
     {
         Butterfly butterfly = new Butterfly();
         ButterflyQuery butterflyQuery = new ButterflyQuery(connection);
         butterfly = butterflyQuery.getButterfly(tagNumber);
         if(butterfly == null)
         {
             butterfly = new Butterfly();
             butterfly.tagNumber = tagNumber;
             butterfly.species = entry.species;
             butterflyQuery.addButterfly(butterfly);
         }
         else
         {
             butterflyQuery.incrementSightings(butterfly.tagNumber);
         }
     }
 }
 public ButterflyQueryUnitTest(MySqlConnection connection)
 {
     this.connection = connection;
     query = new ButterflyQuery(connection);
 }