Using database instead of an API to fetch data

Good day everyone,
I need your assistance, so my current process uses an api to fetch data so now I need it to fetch data from the database, I have already checked the connection,It does connect to the database. I just need to get the logic around the whole thing.
Process goes like:>

First accessing outlook email download attachment if there is any,if not it goes on to extract some ID and policy number in the body of the email using regex and query some information with those onto the API.
It then goes on to take some more info from api and open the browser app,logs into it then fill the fields there with the info it got

Now i need to query the info I was taking from the database instead of an api


So can you please tell what you tried and where you are stuck


This was resolved thank you

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.