listen to network changing and load local database data if network is
not available.