Use env var to connect to db
fix bug after upgrading to new version of sinatra