Groovy Scripts for Managing PostgreSQL