Modified SQL so it also runs on PostgreSQL and Oracle. Added code to test if JSON files are equal across DBMSs.