Update mongoid configuration