Spell database objects, template script for groovy