added postgresql support for production (heroku) environment