Add mongoid support

lots of whitespace, which are not required and make it hard to read logic together.