Example application using flask and postgres