Add fts functions and various triggers.