the issue is that the saving of prominent hpt is getting delayed and in the meantime the getHistoryData method is called. This is causing problems. So changed the saveEventually to saveInBackground. Thinking of breaking the getHistoryData method and distributing the workload to previous activities.