made db.getConfig public