switches to pg in production