import logging
from app import db

logger = logging.getLogger(__name__)


def save_data(data):
    try:
        db.session.add(data)
        db.session.commit()
    except Exception as err:
        logger.error(err)

import logging
from app import db

logger = logging.getLogger(__name__)


def save_record(record):
    try:
        db.session.add(record)
        db.session.commit()
    except Exception as err:
        logger.error(err)

def delete_record(record):
    try:
        db.session.delete(record)
        db.session.commit()
    except Exception as err:
        logger.error(err)

Rename save method for database to a more descriptive name
[FIX] Rename save method for database to a more descriptive name
