make load_api_data correctly iterate over all SQL files