added memcache to select queries