Partial support for heroku; Add DB username and password
Some bugfixing; Add final support for heroku