Got the installer working. Fixed a few bugs including a nasty-to-debug issue where the lang_id was being hardcoded during installation, resulting in strings being inserted with the wrong lang_id causing an infinfinite loop with fetch() throwing a "no strings" error and using template (which calls fetch()) to complain
</div>
</td>
<td id="mdg-mr"></td>
</tr>
<tr>
<td id="mdg-btl"></td>
<td>
<div id="credits">
{COPYRIGHT}
</div>
</td>
<td id="mdg-btr"></td>
</tr>
<tr>
<td id="mdg-btcl"></td>
<td id="mdg-btm"></td>
<td id="mdg-btcr"></td>
</tr>
</table>
</td>
<td style="width: 10%;"></td>
</tr>
</table>
</body>
</html>