creating ttl index on history colls

Done in next commit.