First, do not use adhesives or caulks that contain silicone when working with PVC.
If waterproofing is your primary concern, use a PVC-specific caulk/sealant. Unlike adhesives, PVC caulks are meant to fill gaps and create a water-resistant seal between materials.
If bonding is more important, don't use PVC pipe glue, which is often colored blue. Instead, choose a PVC-to-PVC adhesive such as Weld-On 705, OSI Quad, Christy’s Red Hot or PVC TrimWelder.