That was the least of it actually... The worst part was an old antiquated hack had totally destroyed the style table - I kept getting an "Invalid Row" error. I had to resort to truncating the style, template and template history tables, reimporting style information with tools and rebuilding from scratch.