update mongoid config