Put memcache logic into DB class. Doesnt work with resources. Boo