public static void insert() {
   DataVersionDao dao = Services.getServices().getDbi().open(DataVersionDao.class);
   dao.insert(0);
   Services.getServices().getDbi().close(dao);
 }
 public static void update(Integer version) {
   DataVersionDao dao = Services.getServices().getDbi().open(DataVersionDao.class);
   dao.update(version);
   Services.getServices().getDbi().close(dao);
 }
 public static Integer getDataVersion() {
   DataVersionDao dao = Services.getServices().getDbi().open(DataVersionDao.class);
   DataVersion dataVersion = dao.findDataUpdateVersion();
   Services.getServices().getDbi().close(dao);
   return (dataVersion == null ? null : dataVersion.getDataVersion());
 }