Connecting streamlit app to a database in order to save users actions

There is a guide that may help how to solve your issue.