DB class now turns resources into an array of objects and stores in MC.