changed postgres adapter