[dbapi] move ProgrammingError into cubicweb module
A new ``repoapi`` will be introduced as a replacement for the dbapi. It will
need ProgrammingError too.
Related to #2503918
# migrate default format for TriInfo `comment_format` attributesync_schema_props_perms('TrInfo')commit()