(PDB-660) Convert events query->sql to use query-eng, with failing tests

Signed-off-by: Ken Barber <ken@bob.sh>