INSERT INTO uGroups (groupName)
SELECT 'tokenAdministration'
WHERE NOT EXISTS (
    SELECT 1
    FROM uGroups
    WHERE groupName = 'tokenAdministration'
);

INSERT INTO users_groups (users_userId, groups_groupId)
SELECT u.userId, g.groupId
FROM users u
JOIN uGroups g ON g.groupName = 'tokenAdministration'
WHERE u.userName IN ('admin', 'developer', 'production', 'service', 'customer')
  AND NOT EXISTS (
      SELECT 1
      FROM users_groups ug
      WHERE ug.users_userId = u.userId
        AND ug.groups_groupId = g.groupId
  );