fix a graphic
use pg and set up database so it works on heroku