made the postgres connection better so as to allow heroku databases over ssl