I use this for connecting to a postgres database from navicat. Not sure if there is a better way. For example:
db_params `heroku config:get DATABASE_URL -a vts-production-replica`
Outputs:
username=xdfkdfsi
password=xxxxxxkdfkslsldksokdksj9dsa
host=ec2-42-95-244-210.compute-1.amazonaws.com
port=5432