def set_names(fname: str) -> tuple:
    """
    create database name and outfile name from input filename
    :param fname: input file name
    :return: tuple: database name, output filename
    """
    db_name: str = '.'.join((fname.split('.')[0], 'db'))
    outfile: str = '.'.join((fname.split('.')[0], 'json'))

    return db_name, outfile