def METHOD_NAME(tiles_fn, pin_func_fn, json_fn, verbose=False):
    # Load input files
    tiles = load_tiles(tiles_fn)
    # Read site map
    pin_func = load_pin_functions(pin_func_fn)
    # Index input
    database = make_database(tiles, pin_func)
    # Save
    xjson.pprint(open(json_fn, 'w'), database)