private void updateCounter(int counter, Forma forma) throws SQLException {
   connection.update(
       "update "
           + tableName
           + "  set counter =\" "
           + counter
           + "\"where idProjektu = \""
           + forma.getTyp().name()
           + "\";");
 }
  private boolean checkIfExistsAndFillResultSet(Forma forma) throws SQLException {
    resultSet =
        connection.execQuery(
            "select * from "
                + tableName
                + " where idProjektu = \""
                + forma.getTyp().name()
                + "\";");

    return resultSet.next();
  }
 private void createNew(Forma forma) {
   connection.update(
       "insert into " + tableName + " (idProjektu) values(\"" + forma.getTyp().name() + "\" );");
 }