Added query code

need to put them in actual functions. as well as some sort of UI to change the values