Merge pull request #1074 from eguaj/3.3

feat(database): Use Postgresql's pg_trgm and unaccent extensions (closes #4498)(closes #4499)(closes #4501)
feat(database): correct index name for filecontent (refs #4526)
feat(database): add avalues json columns instead of values/attrids (refs #4507)
fix(supervisor): adjust to new table family (refs #4456)
chore(test): adjust some test (refs #4507)
Merge pull request #1073 from Eric-Brison/3.3-E4507

feat(database): add avalues json column instead of values/attrids (closes #4507)
feat(database): Initialize database's schemas/extensions/ts_configs (refs #4499)