added new class method to nginmodel and modelbase for mass update