meDB pg1 scripts