use replace to insertOrUpdate

network data is always with id, if the id exists, we have not idea to insert data into the database.