refactored so that DB config is centralized in base class