Add a BTREE index to sessions for counting distinct.