Add automatic restriction on all queries