if query empty then return nothing