def METHOD_NAME(path):
    db = sqlite3.connect(path)
    cursor = db.cursor()
    cursor.execute("SELECT max(rnd) FROM blocks")
    row = cursor.fetchone()
    cursor.close()
    db.close()
    return row[0]