set up mongoid