in reply to Errors from a simple Package

Personally, I would have run_sql() return the $sth handle, rather than having people who'll read this code later check the docs/source of the module in order to figure out what's the deal with the global variable.

Much easier to read, IMHO, and you can also have multiple $sths if you need to.