There are quite a few threads on the QB about using glue for basting the quilt sandwich. Try using the "search" feature upper right to find them.
I use glue to "pin" seams together when I want a perfect join. For this I go to the ironing board, pin straight down through the seam, add a tiny dot of glue in the seam allowance, then press with the iron to dry the glue immediately. Works great!