added synchronized to the do in background
Merge pull request #5 from Mobiquity/darshad/update_api_task

added synchronized to the do in background