Added Heroku support for external database