Made the DbFactory internal. Removed the old obsolete DbConfig.