Document script_id and template databases