Magic command to get a copy of heroku database locally.
local_database = name of your postgres database, will normally be app_name_development
remote_heroku_url = the subdomain before herokuapp.com at heroku
heroku pg:pull DATABASE_URL local_database –app remote_heroku_url
copy one to another
heroku pg:copy production-url::DATABASE_URL DATABASE_URL –app staging-url