improved trigger/sp updates in database versioning