Changing how querys work, config is stored