import sqlite3
from typing import Tuple
from typing import Optional


def query_database_one(cursor: sqlite3.Cursor, query: str, args: Tuple[str, ...]) -> Optional[str]:
    """Query the database for a single record"""
    data = cursor.execute(query, args).fetchone()
    if data:
        return data[0]
    return None