Add support for postgres in heroku

  -  Create basic integration test