Mongo DB finall working. A few more changes...