Added conditional to check for Heroku database when loaded otherwise use local postgres.