small style changes
replacement of mongo.cursor.to.list
new 1.8.0 rmongodb version