modify connect2postgres