Moved the database operation in ActionListActivity into an AsyncTask.