issue #21684: database tax function