Move themes and topics to tables