Hello friend, and welcome to the list!

Are you saying you glued the flannel and batting together in preparation for quilting (sewing) through all three layers in order to join them? Some people use Elmer's Washable School Glue to glue all three layers together before quilting. It sounds like the front of the quilt is pieced. Have you sewn the quilt top to another layer, either of batting or of backing fabric? If you've used 505 spray, you should be able to reposition the layers so you wouldn't have to tear out anything. Perhaps it would help you to watch several YouTube videos on glue basting with Elmer's. Please don't be discouraged -- we can work through this with you!