create base class for database types