import sqlite3


def get_taxref_db_version(taxref_db):
    """
    Get taxref db version (from SQL database comment), and number of refseqs.
    """

    db = sqlite3.connect(taxref_db)
    version = db.execute("SELECT * FROM version").fetchone()[0]
    refseqs = db.execute("SELECT Count(*) FROM refseqs").fetchone()[0]
    return (version, refseqs)