Base classes for generic data acces