improved trigger/sp handling of database versioning

- skip dbsv-update if triggers/sp are not installed (yet)
- added safeguard against downgrading to old trigger/sp versions
Merge branch 'master' into next