Add necessary index on topic, reply table