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