converted models to use mongoid