How to store input data from dash components and output data from callbacks in Postgres Database?

I want to store input and output data from the dash application in my Django web application’s database.
Also, how do I filter data for different users?