add method to set/get values in query.