Moves  persistence to asynctask with callbacks