How do I add a super admin, either programmatically or directly through the database or another
You have to create a super admin role(admin/people/permissions) and check all the boxes. And then you need to assign this role to the user.