creating ttl index on history colls

Fixed in next commit.