started creating types for database entrees, and fixed the bug where one of the threads wouldn't die