rebase the mongo documents