Removed some functions not needed to flaskr.py