Fixed mongoid configuration