Simple visualization using flask, postgres, and d3