added global config, db class
added global config, db class