Update CacheDetailActivity.java

put db transaction into background thread.