moved some crap to db manager to clean up app.py