moved tidy to use static tsrmls pointer
converted ext/sqlite and ext/pdo_mysql to use static tsrmls cache