Use foreman to manage postgres. Read more:

http://work.stevegrossi.com/2014/03/15/foreman-lets-you-run-things-only-when-you-need-them/
Improve heroku.rake DB tasks:

- read from database.yml instead of repeating config
- refer to e.g. `-r production` instead of app name
Update Rails to 4.0.4 w/ its dependencies