Add mongoid support

Yes, when I have moved the code from the rake file to this, there were three constants out of which 2 where dependent on the `ENV` variable, I wanted to remove that coupling so I removed those constants and specific methods that would be easier to understand and test.
Please guide if I am missing something.