Add pg gem and rails 12 factor