Config database for production use.

* Uses ENV variables.
* Fixes Heroku deploy
Fix rake assets:precompile

Config app to prevent initializing itself and connecting to the database on assets precompile.

* Fixes Heroku deploy