I have a little package that handles connections to the WRDS postgres backend. It’s kind of half-baked, but in case it’s helpful to you, you can find it here.