More bugfixing. The DB schema is pretty broken after import, at this point. Arrrgh.
Fukkig, not bothering with fixing it via scripts, just going to live with having it tweaked manually.
If the db was compeltely cleaned and recreated, it would be fine.
Bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs, bugs