Still tracking down the bugs with the new database schema - needed to set sqlite to handle 8-bit strings (as opposed to just UNICODE strings)