fixed memcache
changed queries to use memcache
updated to get rand true/false for queries using memcache