def do_transactions_match(db_transaction, bank_transaction):
    """
    Check if a transaction from our database matches a transaction from the bank scraper.
    """
    return (
        db_transaction.transaction_details['description'] == bank_transaction['description'] and
        db_transaction.transaction_type == bank_transaction['type'] and
        db_transaction.amount == bank_transaction['amount']
    )