Fix Ebsdd Id generation, updated Mongoid