Renames id keys to uid to avoid mongo overlap.