trying db query