integrated utils.py with app.py for mongo saving