DROP TABLE IF EXISTS threads;
DROP TYPE IF EXISTS thread_type;