Support for IDBIndex - fighting scalac all day - avoid path dependent type classes !