Update topic.py

replace @with_transaction with @db_session