migration script for tcat installs before the query manager was implemented