Query rework
Still some issues with the channel maybe not closing when it should but it doesn't seem to cause memory leaks, will investigate further if it ends up being a problem
Still some issues with the channel maybe not closing when it should but it doesn't seem to cause memory leaks, will investigate further if it ends up being a problem