SELECT / INSERT in validator