@classmethod
def find(cls, key):
    """Look up user database entry"""
    query = cls.db.query(cls.model.orm)
    attr = getattr(cls.model.orm, cls.model.key)
    row = query.filter(attr == key).one_or_none()
    return cls(row) if row is not None else None
