Thinking about sumations

You won’t want to query the database directly. Instead, use a system.tag.queryTagHistory() inside of an expression with the runScript() expression function.