create an index on topics table