You could use @GenEvent to generate boiler plate code (see DatabaseCreated)