create index on texts collection (name:unique)