def METHOD_NAME(self, data):
    """
    Shorthand to update an entry via the database session based on current
    instance fields.
    """
    try:
        self.updated_at = datetime.datetime.utcnow()
        for key, value in data.items():
            setattr(self, key, value)
        db.session.add(self)
        db.session.commit()
    except BaseException:
        db.session.rollback()
        db.session.remove()
        raise