fix latest pony bugs: add @db_session on HistoryHandler in controllers/topic.py and reply.py