Does replit db work in deployment?

I created a web app in replit using flask and replit DB. Now I’ve been trying all day to deploy this web app without success.
I get this error from the logs tab:

Traceback (most recent call last): File "/home/runner/c535ac90-d901-4e81-824b-50af8dff6113/", line 16, in <module> db[username] = {"username": username, "password": new_password} TypeError: 'NoneType' object does not support item assignment.

Thank you for considering my request.

2 posts were merged into an existing topic: Does Replit DB not work in production deployment?