changed adapter to pg