configuring mongoid