Fixed cursor.commit() to connection.commit()

For the FINAL time