Fixed postgresql and heroku issue

'pg' gem was only being added to production group if postgresql was selected for development database.