Removed references to topics table. This too caused sql errors