query adding