def run(index, ofile, count):
    """
    Full run.  Fetch the index, populate index, populate database.
    """
    stock_file = populate_index(index, ofile, count)
    main(stock_file)
def fetch(index, outfile):
    """
    Fetch the stocks into a CSV file, given an index.
    """
    populate_index(index, outfile=outfile)