db_config class