db query pass