Data Model for OpenMRS 2.0.1

I’ve been creating these manually. Can we set up a database and run a Groovy script in a maven task?