there is a typo : cr.execute() instead of cr.exceute().

About that should it be openupgrade.logged_query() instead of cr.execute() ? (I'm not sure)