Changed Database to Mongoid