I agree with all of this, except are you really implementing bayesian models in SQL? I'm not sure that is what the author is advocating in the first place. There are tools for bayesian everything, I much prefer using those over hacking together some illegible SQL script.