[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
Experiment with the search bar. Try queries like "card sometextualcontent" or"card wikiid index" or "345".