--- introspection.py	2006-12-28 14:23:33.000000000 -0500
+++ introspection.py	2006-12-28 14:25:33.000000000 -0500
@@ -32,7 +32,7 @@
     for row in cursor.fetchall():
         try:
             # row[0] and row[1] are like "{2}", so strip the curly braces.
-            relations[int(row[0][1:-1]) - 1] = (int(row[1][1:-1]) - 1, row[2])
+            relations[int(row[0][1:-1]) - 1] = (int(row[2][1:-1]) - 1, row[3])
         except ValueError:
             continue
     return relations
