Switched config to operating on a per object basis, Improved DB class.