How to disable query cache with mysql.connector,con.commit()