am a74f6963: Do database access in the background thread to prevent ANR.

Merge commit 'a74f6963e548b7552d25fc4f851360dc74248958' into eclair-mr2-plus-aosp

* commit 'a74f6963e548b7552d25fc4f851360dc74248958':
  Do database access in the background thread to prevent ANR.