diff --git a/db_upgrade.py b/db_upgrade.py
index <HASH>..<HASH> 100644
--- a/db_upgrade.py
+++ b/db_upgrade.py
@@ -59,7 +59,7 @@ def doPostgreSQLUpgrade(db_conn, nonce_table_name='oid_nonces'):
     """%nonce_table_name
     cur.execute(sql)
     cur.close()
-    conn.commit()
+    db_conn.commit()
[project @ conn -> db_conn again]