public void UpdateEntry(DatabaseTable origElem, DatabaseTable newElem)
 {
     if (origElem.GetType() != newElem.GetType())
     {
         throw new Exception("Inconsistent types");
     }
     if (!init)
     {
         throw new Exception("DatabaseAdapter is already closed");
     }
     dbWriter.DbUpdate(origElem, newElem);
 }