feat(database): add avalues json columns instead of values/attrids (refs #4507)
feat(database): correct index name for filecontent (refs #4526)
chore(test): adjust some test (refs #4507)