Pulling data to FLASK. 

Currently assuming that the templates are done