This was basically a port of the raw SQL to that the existing tests could run again. Originally it was in test-data.sql