using memcache from database