code: public VersionComparator getSchemaVersion() {
          PreparedStatement statement = null;
          ResultSet results = null;
          try {
              statement = connection.prepareStatement("SELECT \"VERSION\" FROM \"SCHEMAVERSION\"");
              results = statement.executeQuery();
  
              if (results.next()) {
                  return new VersionComparator(results.getString(1));
              }
          } catch (SQLException e) {
              // throw it away
          } finally {
              DbUtil.close(results);
              DbUtil.close(statement);
              //DbUtil.close(connection); // do not close connection
          }
          return null;
      }
docs: Retrieves the current schema version documented in the database.
  @return A VersionComparator of the schema version
  @since 1.2.0