I have a scenario that when data failed to insert to database or no connection, I collect those failed GPS coordinates data and saved to my persistent storage on phone. Once