Use SQLx, the new threaded query system instead. Player is authorized (though I'd use client_putinserver instead), you fire off the query, game goes on, query comes back and you act on it.
I'd put it in client_putinserver instead because you'll perform the query less often as not everyone who authorizes actually makes it into the server. Further, if you're using sv_downloadurl, clients will authorize twice very frequently, thus you'd be running the query and code much more often than you need to.