docs: public int addServerGroup(String groupName, int profileId) throws Exception {
          int groupId = -1;
          PreparedStatement statement = null;
          ResultSet results = null;
  
          try (Connection sqlConnection = sqlService.getConnection()) {
              statement = sqlConnection.prepareStatement("INSERT INTO " + Constants.DB_TABLE_SERVER_GROUPS
                                                             + "(" + Constants.GENERIC_NAME + "," +
                                                             Constants.GENERIC_PROFILE_ID + ")"
                                                             + " VALUES (?, ?);", PreparedStatement.RETURN_GENERATED_KEYS);
              statement.setString(1, groupName);
              statement.setInt(2, profileId);
              statement.executeUpdate();
  
              results = statement.getGeneratedKeys();
  
              if (results.next()) {
                  groupId = results.getInt(1);
              } else {
                  // something went wrong
                  throw new Exception("Could not add group");
              }
          } catch (SQLException e) {
              e.printStackTrace();
          } finally {
              try {
                  if (results != null) {
                      results.close();
                  }
              } catch (Exception e) {
              }
              try {
                  if (statement != null) {
                      statement.close();
                  }
              } catch (Exception e) {
              }
          }
  
          return groupId;
      }