Add pg gem for production, add minor changes to code syntax.