Flatten mongodb objectid