database loading and saving to asynctask