added lots of boilerplate code for the mongoid setup