updated method to create pg user