Run query to database query zone trap