How to Connect Data From pgAdmin to Plotly Dash

I need help regarding a project.
I want the following steps for my project to follow

I have a data from an oil field, time-based and depth-based data. All data is in .csv format.
I have uploaded data on pgAdmin
Now I want to connect the pgAdmin server with plotly dash. Help required here.
I want to create a website where users can download time-based data and depth-based data separately. For example the whole .csv files. Help required here
Then I want to use filters so the users can download the selected columns and rows from time-based data and depth-based data. Help required here

Need useful suggestions or codes to write the above steps successfully.


pgadmin is just an admin tool for postgresql so you can use you psycopg2 library on python to acces your database and query your data.