Add Groovy script to generate queries for populating tables