connect to db using env-var (same as in heroku).