Now the previous network state is saved to the DB, and loaded when there
is no connection.