switched from active record to mongoid