switched dao to pg