sql support for topic