DB/Overpass: Bugfix merging conditions
Compile Link Selector: use DB selector compiler
Merge branch 'db-postgresql-as-base-class' into db-overpass

- also apply change to DB/Overpass