def all(cls): x = DB.find(cls.collection, {}) return [cls(**i) for i in x]
def getMany(cls, k, v): allalerts = DB.find(cls.collection, {k: v}) return [cls(**i) for i in allalerts]
def findMany(cls, k, v): x = DB.find(cls.collection, {k: v}) return [cls(**i) for i in x]
def all(cls): allalerts = DB.find(cls.collection, {}) return [cls(**i) for i in allalerts]