Postgres support

Added local postgres and mysql database profiles. Heroku config changed
to use postgres.

Additional configs for Heroku.