Original flaskr file from tutorial