classes for timeseriesdatabase; query use case