code: public String getGroupIdsInPathProfile(int profileId, int pathId) {
          return (String) sqlService.getFromTable(Constants.PATH_PROFILE_GROUP_IDS, Constants.GENERIC_ID, pathId,
                                                  Constants.DB_TABLE_PATH);
      }
docs: First we get the oldGroups by looking at the database to find the path/profile match
  
  @param profileId ID of profile
  @param pathId ID of path
  @return Comma-delimited list of groups IDs