PLD: KCAT-74 indirection to vary query on type of database engine