[Database] Log transaction mismatch errors to the DB log.