change to pg in dev, alert query fix for pg