Put pg attributes in the correct format