Uncomment thread status conditionals, fix import script for new DB schema