Flag direct database queries