use SQL BETWEEN in Database addMinimum and addTransitionState

a single filter of between(emin, emax) should be faster than two
filters (e > emin) and (e < emax)