PTR-01-01: Stab at switching to SQLite.

Ripped the sql functions from snbx.
PTR-01-02: Conversion of chat formatting

Setup for the plan of Team-Colored Tags, and addtions of colorable
names/text with teamcolor support.