Finished with the BuildThDatabase script.
Significant work on pulling over and rewriting the code to compute a lightmap from an event database -- this is definitely much cleaner and simpler to administer.