changed gems to pg