espra/db: update the Index and Session type definitions.