Run query to database query zone tasks