Update and rename getSection to extractQuerySection.R