Check network connection and try to query from local database
Enable saving in local database