public static function db() { if (!self::$db) { self::$db = new TMS_DB(); } return self::$db; }
public static function escape($str) { return TMS_DB::db()->escape($str); }