implementing app.py with session variables as opposed to db due to mongodb errors