replaces data path in mongodb