added memcached  caching
added sql caching