Add replace document by id