Running background and foreground tasks simultaneously

How do I get around to running a file(, Tweepy) from my web-app in the background and another(, dash-Flask) that renders the front-end and updates it with data from the database being populated by the background task(running 24/7, everyday)?

You can update your database with but it works only with a paid account.