Query on Cloud and Save data into sqlite