mongoid made to work by commenting out active_record use