add query
test for db