public void UpdateProfile(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     if (entry != null)
     {
         entry.Profile = ProfileWriter.Write(profile);
         _conn.Update(entry);
     }
 }
 public bool ProfileExists(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     return entry != null;
 }
 public void DeleteProfile(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     if(entry != null)
         _conn.Delete(entry);
 }