more mongodb work- almost there!