Use Query statements in Gatekeeper UserProvider