I'm making my own classes for accessing categories and products from my Zen Cart store, because the existing ones are confusing and poorly documented in the API Documentation on this site.

But I keep seeing "global $db" in many of the existing class functions. Where can I find documentation on the database class?

Thanks.