Completed methods in flaskServer.py