Mongodb integration halfdone