Description of problem: The upgrade class closes the database connection after running the upgrade script without first commiting the transaction. Any changes made by the upgrade script are lost. Line 196 should call conn.commit() first.