instead of generated specific SQL queries in python. This allows to make Provenance*DB classes easily mergeable (following revision).
So now most of the specific logic is handled in sql functions or
templatized sql code (e.g. relation_add()), it makes no sense to keep
two classes.
Depends on D5843