made pg as db