public void deleteItem(int itemid) {
   RedmineConnectionModel model = new RedmineConnectionModel(helperStore);
   try {
     model.delete(itemid);
   } catch (SQLException e) {
     e.printStackTrace();
   }
 }
 public RedmineConnection getItem(int itemid) {
   RedmineConnectionModel model = new RedmineConnectionModel(helperStore);
   RedmineConnection item = new RedmineConnection();
   try {
     item = model.fetchById(itemid);
   } catch (SQLException e) {
     e.printStackTrace();
   }
   return item;
 }
 public List<RedmineConnection> fetchAllData() {
   final RedmineConnectionModel model = new RedmineConnectionModel(helperStore);
   List<RedmineConnection> projects = new ArrayList<RedmineConnection>();
   try {
     projects = model.fetchAll();
   } catch (SQLException e) {
     Log.e("SelectDataTask", "doInBackground", e);
   } catch (Throwable e) {
     Log.e("SelectDataTask", "doInBackground", e);
   }
   return projects;
 }
  public RedmineConnection updateItem(int itemid, RedmineConnection item) {
    RedmineConnectionModel model = new RedmineConnectionModel(helperStore);

    try {
      if (itemid == -1) {
        model.create(item);
      } else {
        item.setId(itemid);
        model.update(item);
      }
    } catch (SQLException e) {
      e.printStackTrace();
    }
    return item;
  }