I had a lot of problems with lotus script in templates and databasesespecially with LS recompilation and refresh design.
I created Mass template and database recompilator which can make LS recompilation a refresh design much easier.
see:
http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/DbReCompiler