fixing mongo inserts for new paths