Glad I'm not the only one scratching his head as to where this `$db` property comes from.
Also not sure if I like this magic....