functions extract data from web service and insert in mobile db