db query check