PM: template links in TVs; connect to DB for mysqli; spelling

Template links: existing MODX practice in is to use @internal @template_assignments for TV<->template links in tpl files. Changed for compatibility of both current and future Extras.

DB reconnection is required at start of Install phase if using PHP mysqli extension

It's always, not allways, so corrected variable name to $overwrite_always. Sniff.