query3 ready to be implmented. Added queries parser and function.