title: fetch updated datafrom an sql database every day
body: <p>I am trying to fetch an updated dataset from an SQL database every day. However, whenever I call the function inside the schedule I get a job instance back instead of the data. Why is the schedule not returning the data frame?</p>
  <pre><code>def request_data_insitereports(creds:dict, report_id:int, from_date:str, to_date:str) -&gt; pd.DataFrame:
      serverpath = r'https://portal.insitereports.nl/data.php?'
      r = requests.post(serverpath + 'action=login', data=creds)
      result = r.json()
      if(result['success']==True):
          token = result['token']
          report = requests.get(serverpath + 'action=getdata&amp;token=' + str(token) + '&amp;report='+str(report_id) + '&amp;from=' + str(from_date) + '&amp;to=' + str(to_date) + '&amp;output=csv')
          textfile = report.text
          textfile = io.StringIO(textfile)
          data = pd.read_csv(textfile, sep=';', parse_dates=True, index_col='Tijdpunten [jaar-maand-dag uur:min:sec]')
          return data
      else:
          print(result['error'])
  
  data = schedule.every().day.at('13:25').do(creds=creds, report_id=29025, from_date='2022-03-10', to_date='2022-07-01')
  while True:
      schedule.run_pending()
      time.sleep(
  </code></pre>