Mongo bug fixes and new methods