feat(database): concatenate triggers (closes #4461)