Introduce GenericSparseDB() class