db functions in app.py
pray it works