connect heroku to a different server sql database code example Example: link db to heroku DATABASE_URL=postgresql://name:pass@localhost:5432/db name